package com.xjlsoft.weather.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

import lombok.Getter;

/**
 * 地面数据  现在天气 枚举
 * */
@Getter
public enum WeatherCommonEnum {

    WE9999999("999999", "缺测"),
    WE9999990000("9999.0000", "缺测"),
    WE999998("999998", "不观测和无数据"),
    WE9999980000("9999980000", "不观测和无数据"),
    WE9999xx("9999xx", "极值出现日数/月数/年数");

    WeatherCommonEnum(String code, String descp) {
        this.code = code;
        this.descp = descp;
    }

    @EnumValue
  	@JsonValue	
    private final String code;
    
    private final String descp;
    
    @Override//一定要重写toString()
	public String toString() {
		return this.descp;
	}
    
    

}